<template>
  <el-table :data="tableData" style="width: 100%">
    <el-table-column prop="address" label="名称"> </el-table-column>
    <el-table-column prop="address" label="Token"> </el-table-column>
    <el-table-column prop="address" label="创建日期"> </el-table-column>
    <el-table-column prop="address" label="更新日期"> </el-table-column>
    <el-table-column label="操作">
      <template slot-scope="scope">
        <el-button size="mini" @click="handleEdit(scope.$index, scope.row)"
          >编辑</el-button
        >
        <el-button
          size="mini"
          type="danger"
          @click="handleDelete(scope.$index, scope.row)"
          >删除</el-button
        >
      </template>
    </el-table-column>
  </el-table>
</template>

<script>
export default {
  data() {
    return {
      tableData: [
        {
          address: "xxx",
        },
        {
          address: "XXX",
        },
        {
          address: "XXX",
        },
        {
          address: "XXX",
        },
      ],
    };
  },
  methods: {
    handleEdit(index, row) {
      console.log(index, row);
    },
    handleDelete(index, row) {
      console.log(index, row);
    },
  },
};
</script>